/**
 * 
 */
package com.yidu.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.stereotype.Service;

import com.yidu.bean.TbShopping;
import com.yidu.dao.TbMenuMapper;
import com.yidu.dao.TbShoppingMapper;
import com.yidu.message.Page;
import com.yidu.service.TbShoppingService;

/**
 * 
 * @author liutao
 * @data 2018年7月19日
 * @version 1.0
 */
@Service
public class TbShoppingServiceImpl implements TbShoppingService{
	
	Logger logger = Logger.getLogger(TbMemberImpl.class);

	@Resource
	private TbShoppingMapper TbshoppingDao ;
	
	@Override
	public int delete(String shoppId) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int save(TbShopping shopping) {
		
		return TbshoppingDao.insert(shopping);
	}

	@Override
	public int update(TbShopping shopping) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<TbShopping> findVague(Page page, TbShopping shopping) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<TbShopping> findAll() {
		return TbshoppingDao.findAll();
	}

	@Override
	public List<TbShopping> findByMemId(String memId) {
		// TODO 自动生成的方法存根
		return TbshoppingDao.findByMemId(memId);
	}

	@Override
	public Integer findSum(String memId) {
		// TODO 自动生成的方法存根
		return TbshoppingDao.findSum(memId);
	}

	@Override
	public Integer findNum(String memId) {
		// TODO 自动生成的方法存根
		return TbshoppingDao.findNum(memId);
	}

}
